package com.tech.koufu.model;

import java.io.Serializable;

public class UserStocks implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public String stockId;
	public String stockName;
	public String teamId; //组ID
	public String stockHold; //持股数量
	public String stockCanSell; //可卖数量
	public String stockbj;  //买入价
	public String stockykj; //盈亏成本
	public String stockdqj; //当前价
	public String stockcyl; //持有量
	public String allmoney; //总资产
	public String stockZsp;//昨天收盘价



	@Override
	public String toString() {
		return "UserStocks [stockId=" + stockId + ", stockName=" + stockName
				+ ", teamId=" + teamId + ", stockHold=" + stockHold
				+ ", stockCanSell=" + stockCanSell + ", stockbj=" + stockbj
				+ ", stockykj=" + stockykj + ", stockdqj=" + stockdqj
				+ ", stockcyl=" + stockcyl + ", allmoney=" + allmoney
				+ ", stockZsp=" + stockZsp + "]";
	}



	public UserStocks() {
		super();
		// TODO Auto-generated constructor stub
		//
	}

	public UserStocks(String stockId, String stockName, String teamId,
			String stockHold, String stockCanSell, String stockbj,
			String stockykj, String stockdqj, String stockcyl, String allmoney,
			String stockZsp) {
		super();
		this.stockId = stockId;
		this.stockName = stockName;
		this.teamId = teamId;
		this.stockHold = stockHold;
		this.stockCanSell = stockCanSell;
		this.stockbj = stockbj;
		this.stockykj = stockykj;
		this.stockdqj = stockdqj;
		this.stockcyl = stockcyl;
		this.allmoney = allmoney;
		this.stockZsp = stockZsp;
	}



	public String getStockId() {
		if (Integer.valueOf(stockId)/10000>=40) {
			return "1" + stockId;
		}else{
			return "0" + stockId;
		}
		
	}

	public void setStockId(String stockId) {
		this.stockId = stockId;
	}

	public String getStockName() {
		return stockName;
	}

	public void setStockName(String stockName) {
		this.stockName = stockName;
	}

	public String getTeamId() {
		return teamId;
	}

	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}

	public String getStockHold() {
		return stockHold;
	}

	public void setStockHold(String stockHold) {
		this.stockHold = stockHold;
	}

	public String getStockbj() {
		return stockbj;
	}

	public void setStockbj(String stockbj) {
		this.stockbj = stockbj;
	}

	public String getStockdqj() {
		return stockdqj;
	}

	public void setStockdqj(String stockdqj) {
		this.stockdqj = stockdqj;
	}

	public String getStockcyl() {
		return stockcyl;
	}

	public void setStockcyl(String stockcyl) {
		this.stockcyl = stockcyl;
	}

	public String getAllmoney() {
		return allmoney;
	}

	public void setAllmoney(String allmoney) {
		this.allmoney = allmoney;
	}
	public String getOrigStockId() {
		return stockId;
	}

	public String getStockZsp() {
		return stockZsp;
	}

	public void setStockZsp(String stockZsp) {
		this.stockZsp = stockZsp;
	}



	public String getStockCanSell() {
		return stockCanSell;
	}



	public void setStockCanSell(String stockCanSell) {
		this.stockCanSell = stockCanSell;
	}



	public String getStockykj() {
		return stockykj;
	}



	public void setStockykj(String stockykj) {
		this.stockykj = stockykj;
	}

 
	
}
